package main

import (
	_ "gitee.com/wolferhua/golog/routers"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
)

func main() {
	//初始化orm
	initOrm()
	//启动程序
	beego.Run()
}

func initOrm() {
	orm.RegisterDataBase("default", beego.AppConfig.String(""), "data.db")
}
